﻿namespace HRM.CORE
{
    using DevExpress.XtraTab;
    using APP.HELPER;
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms; using Common;

    public class xucTimekeepingExtraPrivateAdd : Common.xucBase
    {
        private IContainer components = null;
        private XtraTabPage tabExtraHour;
        private XtraTabPage tabPrivateHour;
        private XtraTabControl xtraTabControl1;

        public event SuccessEventHander Success;

        public xucTimekeepingExtraPrivateAdd()
        {
            this.InitializeComponent();
            base.Load += new EventHandler(this.xucTimekeepingExtraPrivateAdd_Load);
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.xtraTabControl1 = new XtraTabControl();
            this.tabExtraHour = new XtraTabPage();
            this.tabPrivateHour = new XtraTabPage();
            this.xtraTabControl1.BeginInit();
            this.xtraTabControl1.SuspendLayout();
            base.SuspendLayout();
            this.xtraTabControl1.Dock = DockStyle.Fill;
            this.xtraTabControl1.Location = new Point(0, 0);
            this.xtraTabControl1.Name = "xtraTabControl1";
            this.xtraTabControl1.SelectedTabPage = this.tabExtraHour;
            this.xtraTabControl1.Size = new Size(0x2a7, 0x1d2);
            this.xtraTabControl1.TabIndex = 0;
            this.xtraTabControl1.TabPages.AddRange(new XtraTabPage[] { this.tabExtraHour, this.tabPrivateHour });
            this.tabExtraHour.Name = "tabExtraHour";
            this.tabExtraHour.Size = new Size(0x2a0, 0x1b5);
            this.tabExtraHour.Text = "Tăng Cường Giờ C\x00f4ng";
            this.tabPrivateHour.Name = "tabPrivateHour";
            this.tabPrivateHour.Size = new Size(650, 0x1cb);
            this.tabPrivateHour.Text = "L\x00e0m Việc Ri\x00eang";
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.Controls.Add(this.xtraTabControl1);
            base.Name = "xucTimekeepingExtraPrivateAdd";
            base.Size = new Size(0x2a7, 0x1d2);
            this.xtraTabControl1.EndInit();
            this.xtraTabControl1.ResumeLayout(false);
            base.ResumeLayout(false);
        }

        private void RaiseSuccessEventHander()
        {
            if (this.Success != null)
            {
                this.Success(this);
            }
        }

        private void xucTimekeepingExtraPrivateAdd_Load(object sender, EventArgs e)
        {
            xucTimekeepingExtra extra = new xucTimekeepingExtra {
                Dock = DockStyle.Fill
            };
            this.tabExtraHour.Controls.Add(extra);
            xucTimekeepingPrivate @private = new xucTimekeepingPrivate {
                Dock = DockStyle.Fill
            };
            this.tabPrivateHour.Controls.Add(@private);
        }

        public delegate void SuccessEventHander(object sender);
    }
}

